package com.alioth;

/**
 * @Author tsj
 * @Date 2023/11/14/19:14
 */
public class OperandStackTest {

    public void testAddOperand(){
        // byte,shot ,char ,boolean 都是以int 型来保存
        byte b = 15;
        int j = 8;
        int k = b + j;
    }
    public int getSum(){
        int m = 10;
        int n = 20;
        int k = m + n;
        return k;
    }

    public void testGetSum(){
        // 获取上一个栈帧返回的结果，并保存到当前栈帧的操作数帧上面
        int sum = getSum();
        int j = 10;

    }
}
